<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tenplate</title>
</head>
<body>

<div id="app">
    <h2>{{message}}</h2>

    <!-- v-bind -->
    <img v-bind:src="imgURL" alt="">
    <a v-bind:href="aHref">百度一下</a>

    <!-- 语法糖写法 -->
    <img :src="imgURL" alt="">
    <a :href="aHref">百度一下</a>
</div>

<script src="../js/vue.js"></script>
<script>
    const app = new Vue
    (
        {
            el : "#app",
            data : 
            {
                message : "hello",
                imgURL : 'https://img.alicdn.com/imgextra/i3/776873884/O1CN01gJCjPv1eYuuHF8Zpp_!!0-item_pic.jpg_430x430q90.jpg',
                aHref : 'http://www.baidu.com',
            }
        }
    )
</script>
    
</body>
</html>